/* Options: Date: 2026-04-15 18:55:33 Version: 6.110 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://kpm_digiofficeapigateway.tbi.nl/api //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetDocuments.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class RegistrationProfileFieldValue implements IConvertible { String? DocumentFieldID; String? Value; String? ShadowValue; bool? IsModifiedByUser; RegistrationProfileFieldValue({this.DocumentFieldID,this.Value,this.ShadowValue,this.IsModifiedByUser}); RegistrationProfileFieldValue.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DocumentFieldID = json['DocumentFieldID']; Value = json['Value']; ShadowValue = json['ShadowValue']; IsModifiedByUser = json['IsModifiedByUser']; return this; } Map toJson() => { 'DocumentFieldID': DocumentFieldID, 'Value': Value, 'ShadowValue': ShadowValue, 'IsModifiedByUser': IsModifiedByUser }; getTypeName() => "RegistrationProfileFieldValue"; TypeContext? context = _ctx; } abstract class ICustomProperties { Map? CustomProperties; } class Document implements IConvertible { String? GlobalID; String? RootDocumentID; String? Code; String? Subject; String? VersionNumber; bool? NewestVersion; Reference? RelationReference; Reference? DocumentTypeReference; Reference? ProjectReference; Reference? ConstructionBlockReference; Reference? ConstructionNumberReference; Reference? HousingTypeReference; int? Floor; bool? FloorSpecified; DateTime? DeletedDate; bool? DeletedDateSpecified; File? File; List? CustomFields; DateTime? CreationDate; String? CreatedBy; DateTime? ModifiedDate; String? ModifiedBy; Document({this.GlobalID,this.RootDocumentID,this.Code,this.Subject,this.VersionNumber,this.NewestVersion,this.RelationReference,this.DocumentTypeReference,this.ProjectReference,this.ConstructionBlockReference,this.ConstructionNumberReference,this.HousingTypeReference,this.Floor,this.FloorSpecified,this.DeletedDate,this.DeletedDateSpecified,this.File,this.CustomFields,this.CreationDate,this.CreatedBy,this.ModifiedDate,this.ModifiedBy}); Document.fromJson(Map json) { fromMap(json); } fromMap(Map json) { GlobalID = json['GlobalID']; RootDocumentID = json['RootDocumentID']; Code = json['Code']; Subject = json['Subject']; VersionNumber = json['VersionNumber']; NewestVersion = json['NewestVersion']; RelationReference = JsonConverters.fromJson(json['RelationReference'],'Reference',context!); DocumentTypeReference = JsonConverters.fromJson(json['DocumentTypeReference'],'Reference',context!); ProjectReference = JsonConverters.fromJson(json['ProjectReference'],'Reference',context!); ConstructionBlockReference = JsonConverters.fromJson(json['ConstructionBlockReference'],'Reference',context!); ConstructionNumberReference = JsonConverters.fromJson(json['ConstructionNumberReference'],'Reference',context!); HousingTypeReference = JsonConverters.fromJson(json['HousingTypeReference'],'Reference',context!); Floor = json['Floor']; FloorSpecified = json['FloorSpecified']; DeletedDate = JsonConverters.fromJson(json['DeletedDate'],'DateTime',context!); DeletedDateSpecified = json['DeletedDateSpecified']; File = JsonConverters.fromJson(json['File'],'File',context!); CustomFields = JsonConverters.fromJson(json['CustomFields'],'List',context!); CreationDate = JsonConverters.fromJson(json['CreationDate'],'DateTime',context!); CreatedBy = json['CreatedBy']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); ModifiedBy = json['ModifiedBy']; return this; } Map toJson() => { 'GlobalID': GlobalID, 'RootDocumentID': RootDocumentID, 'Code': Code, 'Subject': Subject, 'VersionNumber': VersionNumber, 'NewestVersion': NewestVersion, 'RelationReference': JsonConverters.toJson(RelationReference,'Reference',context!), 'DocumentTypeReference': JsonConverters.toJson(DocumentTypeReference,'Reference',context!), 'ProjectReference': JsonConverters.toJson(ProjectReference,'Reference',context!), 'ConstructionBlockReference': JsonConverters.toJson(ConstructionBlockReference,'Reference',context!), 'ConstructionNumberReference': JsonConverters.toJson(ConstructionNumberReference,'Reference',context!), 'HousingTypeReference': JsonConverters.toJson(HousingTypeReference,'Reference',context!), 'Floor': Floor, 'FloorSpecified': FloorSpecified, 'DeletedDate': JsonConverters.toJson(DeletedDate,'DateTime',context!), 'DeletedDateSpecified': DeletedDateSpecified, 'File': JsonConverters.toJson(File,'File',context!), 'CustomFields': JsonConverters.toJson(CustomFields,'List',context!), 'CreationDate': JsonConverters.toJson(CreationDate,'DateTime',context!), 'CreatedBy': CreatedBy, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'ModifiedBy': ModifiedBy }; getTypeName() => "Document"; TypeContext? context = _ctx; } // @Route("/documents", "GET POST") class GetDocuments implements IReturn>, IConvertible, IGet { String? ViewID; int? PageSize; int? PageNumber; String? SearchCriteria; String? ExplorerID; String? Path; String? ExternalNumber; DateTime? ModifiedSince; bool? AllVersions; String? OrderBy; bool? Archived; String? FilterName; String? ProgCode; String? RegistrationProfileFieldID; List? DependableFields; bool? IncludeCustomProperties; GetDocuments({this.ViewID,this.PageSize,this.PageNumber,this.SearchCriteria,this.ExplorerID,this.Path,this.ExternalNumber,this.ModifiedSince,this.AllVersions,this.OrderBy,this.Archived,this.FilterName,this.ProgCode,this.RegistrationProfileFieldID,this.DependableFields,this.IncludeCustomProperties}); GetDocuments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ViewID = json['ViewID']; PageSize = json['PageSize']; PageNumber = json['PageNumber']; SearchCriteria = json['SearchCriteria']; ExplorerID = json['ExplorerID']; Path = json['Path']; ExternalNumber = json['ExternalNumber']; ModifiedSince = JsonConverters.fromJson(json['ModifiedSince'],'DateTime',context!); AllVersions = json['AllVersions']; OrderBy = json['OrderBy']; Archived = json['Archived']; FilterName = json['FilterName']; ProgCode = json['ProgCode']; RegistrationProfileFieldID = json['RegistrationProfileFieldID']; DependableFields = JsonConverters.fromJson(json['DependableFields'],'List',context!); IncludeCustomProperties = json['IncludeCustomProperties']; return this; } Map toJson() => { 'ViewID': ViewID, 'PageSize': PageSize, 'PageNumber': PageNumber, 'SearchCriteria': SearchCriteria, 'ExplorerID': ExplorerID, 'Path': Path, 'ExternalNumber': ExternalNumber, 'ModifiedSince': JsonConverters.toJson(ModifiedSince,'DateTime',context!), 'AllVersions': AllVersions, 'OrderBy': OrderBy, 'Archived': Archived, 'FilterName': FilterName, 'ProgCode': ProgCode, 'RegistrationProfileFieldID': RegistrationProfileFieldID, 'DependableFields': JsonConverters.toJson(DependableFields,'List',context!), 'IncludeCustomProperties': IncludeCustomProperties }; createResponse() => ObservableCollection(); getResponseTypeName() => "ObservableCollection"; getTypeName() => "GetDocuments"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'kpm_digiofficeapigateway.tbi.nl', types: { 'RegistrationProfileFieldValue': TypeInfo(TypeOf.Class, create:() => RegistrationProfileFieldValue()), 'ICustomProperties': TypeInfo(TypeOf.Interface), 'Document': TypeInfo(TypeOf.Class, create:() => Document()), 'Reference': TypeInfo(TypeOf.Class, create:() => Reference()), 'File': TypeInfo(TypeOf.Class, create:() => File()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'CustomField': TypeInfo(TypeOf.Class, create:() => CustomField()), 'GetDocuments': TypeInfo(TypeOf.Class, create:() => GetDocuments()), 'List': TypeInfo(TypeOf.Class, create:() => []), });